/*
	Copyright (c) 2010 Canadensys
*/

package net.canadensys.dataportal.vascan;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

@Entity
@Table(name="taxon_habit")
@Cache(region="TaxonHHabitus", usage = CacheConcurrencyStrategy.READ_WRITE)

public class TaxonHabit implements Serializable{
	private static final long serialVersionUID = 3015356215022644361L;

	private Habit		habitus;
	private int			sort;
	
	/**
	 * @return the habitus
	 */
	@Id
	public Habit getHabitus() {
		return habitus;
	}
	
	/**
	 * @param habitus the habitus to set
	 */
	public void setHabitus(Habit habitus) {
		this.habitus = habitus;
	}
	
	/**
	 * @return the sort
	 */
	public int getSort() {
		return sort;
	}
	
	/**
	 * @param sort the sort to set
	 */
	public void setSort(int sort) {
		this.sort = sort;
	}
}
